package _07Comparable自然排序;

import java.util.TreeSet;

public class Demo {
    public static void main(String[] args) {
        TreeSet<Student> set = new TreeSet<>();


        set.add(new Student("aaa",18));
        set.add(new Student("bbb",17));
        set.add(new Student("ccc",19));

        System.out.println(set);


    }
}
